﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Battle;

namespace ILRuntimeProject.LevelScript
{
    public class LevelScript_HotFix : ILevelScript
    {
        protected int Level { get; private set; }
        protected float fTime;

        public void StartLevel(int level)
        {
            Level = level;
            fTime = 0;
        }

        public void OnUpdate(float deltaTime)
        {
            fTime += deltaTime;

            if (fTime > 1)
            {
                EnemyFactory.CreateNormalEnemy(0f, 2f, Level+1, 5);
                fTime -= 1;
            }
        }

        public void StopLevel()
        {

        }
    }
}
